package main

import "fmt"

func main() {
	var x [5]int
	x[0] = 12
	x[1] = 1
	x[2] = 2
	x[3] = 8
	x[4] = 10

	var sum int

	for _, i := range x {
		sum += i
	}
	fmt.Println(sum)

	var y = [5]int{1, 2, 3, 4, 5}

	var sum1 int

	for _, i := range y {
		sum1 += i
	}

	fmt.Println(sum1)

	var z = [5]int{}
	z[0] = 19
	z[2] = 20
	z[1] = 21
	z[3] = 22
	z[4] = 12

	var sum2 int
	for _, i := range z {
		sum2 += i
	}

	fmt.Println(sum2)

	var k = [...]string{
		"Monday",
		"Tuesday",
		"Wednesday",
		"Thursday",
		"Friday",
		"Saturday",
		"Sunday",
	}

	for _, day := range k {
		fmt.Println(day)
	}

}
